// JavaScript Document

function rr_login(){
	XN.Connect.requireSession(function(){
	setTimeout("showWindow('renren','renren.php')",500);
	});
	}
window.onload = function () {
	xn_c_mx();
} 
function xn_c_mx(){
	XN_RequireFeatures(["EXNML"], function() {
	  XN.Main.init("{$_G['cache'][plugin][renren]['api_key']}", "xd_receiver.html");
	});
}


var html = document.getElementsByTagName("html");
html[0].setAttribute( "xmlns:xn", "http://www.renren.com/2009/xnml");
html[0].setAttribute( "xmlns:og", "http://ogp.me/ns#");
